package com.linktel.productionLine.service;

import com.linktel.productionLine.dao.ProductionPanelDao;
import com.linktel.productionLine.entity.dto.productionPanel.EfficiencyCurveCharDTO;
import com.linktel.productionLine.entity.dto.productionPanel.StatisticCardsDTO;
import com.linktel.productionLine.entity.dto.productionPanel.StepProductDetailDTO;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author HuangJiaHui
 * @Date 2023/10/19 16:59
 */
@Service
@AllArgsConstructor
public class ProductionPanelService {
    private ProductionPanelDao productionPanelDao;

    public StatisticCardsDTO getStatisticCards(String productionLineCode) {
        return productionPanelDao.getStatisticCards(productionLineCode);
    }

    public List<StepProductDetailDTO> listStepProductDetail(String productionLineCode) {
        return productionPanelDao.listStepProductDetail(productionLineCode);
    }

    public List<EfficiencyCurveCharDTO> listEfficiencyCurveChar(String productionLineCode) {
        return productionPanelDao.listEfficiencyCurveChar(productionLineCode);
    }
}
